package com.kylin.core.merchant.query.handler;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 秒结订单命令处理类
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月27日 17:07
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class RealtimeOrderingCommandHandler {

//    private final RealtimeOrderingTranslator hdsOrderingTranslator;
//    private final RealtimeOrderingDataHandler hdsOrderingDataHandler;
//
//
//    @SuppressWarnings("unused")
//    @CommandHandler
//    @Transactional(rollbackFor = Exception.class)
//    void handle(PersistOrderSettlementCommand command) {
//        // 保存晋升数据
//        hdsOrderingDataHandler.persistPromotion(command.getPromotion());
//        // 保存归属数据
//        hdsOrderingDataHandler.persistAscription(command.getAscription());
//        // 保存拨付数据
//        hdsOrderingDataHandler.persistRewards(command.getRewards());
//    }
}
